/*
 *暑期JAVA学习 版权所有 2022-2025 
 */
package com.ychs.corejava.day05;

/**
 *switch 测试
 * @author  menlu
 * @version 1.0
 */
public class TestSwitch {

	/**
	 * 
	 */
	public static void main(String[] args) {
		String addrString = "tit";
		switch (addrString) {
		case "china":
			System.out.println("china");
			break;
		case "tit":
			System.out.println("tit");
			break;
		default:
			System.out.println("other");
			break; 
		}
		short x=0;
		switch (x) {
		case 1:
			System.out.println("china");
			break;
		case 2:
			System.out.println("tit");
			break;
		
		}
	}
}
